package com.cd.system.jpa.entityImport;

import com.cd.common.domain.BaseDomain;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
* @description 系统访问记录 ||  || 
* @author admin
* @date 2024-03-25
*/
@Entity
@Data
@Table(name = "sys_logininfor",
        indexes = {
                        @Index(name = "idx_sys_logininfor_s", columnList = "status"),
                        @Index(name = "idx_sys_logininfor_lt", columnList = "login_time")
        }
)
public class SysLogininfor extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    //@Comment("访问ID")
    @Column(name = "info_id", nullable = false )
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long infoId;

    //@Comment("用户账号")
    @Column(name = "user_name" )
    private String userName;

    //@Comment("登录IP地址")
    @Column(name = "ipaddr" )
    private String ipaddr;

    //@Comment("登录地点")
    @Column(name = "login_location" )
    private String loginLocation;

    //@Comment("浏览器类型")
    @Column(name = "browser" )
    private String browser;

    //@Comment("操作系统")
    @Column(name = "os" )
    private String os;

    //@Comment("登录状态（0成功 1失败）")
    @Column(name = "status" )
    private String status;

    //@Comment("提示消息")
    @Column(name = "msg" )
    private String msg;

    //@Comment("访问时间")
    @Column(name = "login_time" )
    private Date loginTime;

}

